<template>
   <div >
   <ul>
   <li v-for=" item in people" :key="item">{{item}}</li>
   </ul>
     <button @click="btn">串一下</button>
   </div>
</template>

<script>
export default {
  data() {
       return {
         people:['帅哥1','美女2','程序员3']
       }
   },
  methods: {
    btn(){
      this.people.push(this.people[0]);
      this.people.shift()
    }
  }
}
</script>

<style scoped>
</style>
